<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="/taglibs/iss" prefix="iss"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>MKTB15</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<LINK href="../css/IDEA.css" type=text/css rel=stylesheet>
 <style type="text/css">
        .list_title2 {
	FONT-WEIGHT: bold;
	BACKGROUND-REPEAT: repeat-x;
	HEIGHT: 27px;
	TEXT-ALIGN: center;
	color: #304D53;
	valign:middle;
	bordercolor:#EFEBDE;
	bgcolor:#F7F5F4;
	BORDER-RIGHT: #CACFD2 1px solid; BORDER-TOP: #CACFD2 1px solid; BORDER-LEFT: #CACFD2 1px solid; BORDER-BOTTOM: #CACFD2 1px solid;
}
        </style>
<SCRIPT language=javascript src="../js/IDEA_body.js" type=text/javascript></SCRIPT>
<script src="../My97DatePicker/WdatePicker.js" language="JavaScript" type="text/JavaScript"></SCRIPT>
<SCRIPT LANGUAGE="JavaScript" type=text/javascript>
      function selectMonth() {  
        WdatePicker({ dateFmt: 'yyyy-MM', isShowToday: false, isShowClear: false });  
      }  
    
     function delAreaInfo()
     {  
      	var flag =  document.getElementsByName("checkbox2");
      	var str;        
         for(var i=0;i<flag.length;i++)
         {                
             if(flag[i].checked)
             {
                str = flag[i].value+',';
               
             }
         }
         
        if(null != str && '' != str && "undefined" != str)
        {
           if(confirm('删除该信息，请您确认?'))
           {
               myform.action='<%=request.getContextPath()%>/area/delAreaInfo.html?areaId='+str;
               myform.submit();       
           }
        }
     }
     
     function allCheckBox(obj)
     {
        var flag =  document.getElementsByName("checkbox2");               
        if(obj.checked == true)
        {
          for(var i = 0; i < flag.length; i++)
          {
             flag[i].checked = true;
          }
        }
        else
        {
            for(var i = 0; i < flag.length; i++)
          {
             flag[i].checked = false;
          }
        }
     }
     
     function cancelMyBox()
     {
        var box =  document.getElementsByName("checkbox2");
        var mybox =  document.getElementsByName("mybox");        
        var flag = true;
        
        for(var i = 0; i < box.length; i++)
        {
            if(!box[i].checked)
            {
               flag = false;
            }
        }
        if(flag)
        {
           mybox[0].checked=true;
        }
        else
        {
           mybox[0].checked=false;
        }
     }
     
</SCRIPT>
<META content="MSHTML 6.00.2900.3243" name=GENERATOR>
</HEAD>
<BODY>
<TABLE width="100%" height="100%" border=0 cellPadding=0 cellSpacing=0>
	<TBODY>
		<TR>
			<TD bgcolor="#FFFFFF" class=right_bg>
			<table width="100%" height="5" border="0" cellpadding="0"
				cellspacing="0">
				<tr>
					<td></td>
				</tr>
			</table>
			<table width="100%" border="0" align="center" cellpadding="0"
				cellspacing="0">
				<tr>
					<td width="20">&nbsp;</td>
					<td class="text_12_title">当前位置: <a href="#" class="blue_1">首页</a>
					&gt; <a href="#" class="blue_1">报表管理</a> &gt; 月报表</td>
				</tr>
			</table>
			<table width="100%" height="10" border="0" cellpadding="0"
				cellspacing="0">
				<tr>
					<td></td>
				</tr>
			</table>
			<table width="98%" border="0" cellpadding="0" cellspacing="0"
				background="../images/bg_body_title.jpg" class="list_border1">
				<tr>
					<td width="10">&nbsp;</td>
					<td>
					<table border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td><img src="../images/pic_title_1.jpg" name="imgL1"
											width="8" height="24" id="imgL1"></td>
							<td valign="bottom" class="text_12_border">月报表</td>
							<td><img src="../images/pic_title_2.jpg" name="imgR1"
											width="8" height="24" id="imgR1"></td>
						</tr>
					</table>
					</td>
				</tr>
			</table>
			<table width="98%" border="0" cellpadding="0" cellspacing="0"
				class="list_border2">
				<tr>
					<td align="center" valign="top">
					<table width="98%" height="20" border="0" cellpadding="0"
						cellspacing="0">
						<tr>
							<td></td>
						</tr>
					</table>
					<table width="98%" border="0" cellspacing="0" cellpadding="0">
						<form name="myform" method="POST"
							action="../report/queryMonthTotal.html">
						<tr>
							<td width="20">&nbsp;</td>
							<td width="60">年月：</td>
							<td width="300">
							 <input name="beginYearMonth" type="text"
												class="Wdate input2" height="20" onclick="selectMonth();"
												value="${beginYearMonth }" readonly>
							至
						    <input name="endYearMonth" type="text"
												class="Wdate input2" height="20" onclick="selectMonth();"
												value="${endYearMonth }" readonly>
								
								</td>
							<td width="20">&nbsp;</td>
							<td><input name="Submit" type="submit" class="button_normal"
								value="查  询"></td>
						</tr>
						</form>
					</table>

					<table width="98%" height="10" border="0" cellpadding="0"
						cellspacing="0">
						<tr>
							<td></td>
						</tr>
					</table>
					<TABLE width="98%" border=1 cellPadding=0 cellSpacing=0
						class=list_border>
						<TBODY>
							<TR >
								<TD class=list_title2 rowspan="2" width="5%" >年月</TD>
								<TD class=list_title2 rowspan="2" width="5%" >营业收入(万元)</TD>
								<TD class=list_title2 colspan="5" width="25%" >申请知识产权数</TD>
								<TD class=list_title2 rowspan="2" width="5%" >软件产品(件)</TD>
								<TD class=list_title2 colspan="5" width="20%" >人员情况(人)</TD>
							</TR>
							<TR>
								<td class=list_title2 >发明<br>专利
					</td>
					<td class=list_title2 >实用/新型<br>专利(件)
					</td>
					<td class=list_title2 >外观<br>专利(件)
					</td>
					<td class=list_title2 >集成电路<br>布图(个)
					</td>
					<td class=list_title2 >软件著作权<br>(件)
					</td>


					<td class=list_title2 >博士</td>
					<td class=list_title2 >硕士</td>
					<td class=list_title2 >本科</td>
					<td class=list_title2 >大专</td>
					<td class=list_title2 >总数</td>

							</TR>
							<c:forEach var="bean" items="${queryMonthTotal}" varStatus="status">
								<c:choose>
									<c:when test="${status.index%2==0}">
										<TR class=list_td_white1>
									</c:when>
									<c:when test="${status.index%2==1}">
										<TR class=list_td_white0>
									</c:when>
								</c:choose>
								<TD align="center"><a href="../report/queryAllMonthListComp.html?year=${bean.yearnum}&month=${bean.monthnum}">${bean.yearnum}/${bean.monthnum}</a></TD>
								<TD align="center">${bean.revenue}</TD>
								<TD align="center">${bean.ipInvent}</TD>
								<TD align="center">${bean.ipNewType}</TD>
								<TD align="center">${bean.ipLook}</TD>
								<TD align="center">${bean.icDrawing}</TD>
								
								<TD align="center">${bean.softwareBook}</TD>
								<TD align="center">${bean.softwareProd}</TD>
								<TD align="center">${bean.doctor}</TD>
								<TD align="center">${bean.master}</TD>
								<TD align="center">${bean.bachelor}</TD>
								<TD align="center">${bean.college}</TD>
								<TD align="center">${bean.totalEmployee}</TD>
								</TR>
							</c:forEach>
							    <TR>
							    <TD align="center">总计</TD>
								<TD align="center">${totalBean.revenue}</TD>
								<TD align="center">${totalBean.ipInvent}</TD>
								<TD align="center">${totalBean.ipNewType}</TD>
								<TD align="center">${totalBean.ipLook}</TD>
								<TD align="center">${totalBean.icDrawing}</TD>
								
								<TD align="center">${totalBean.softwareBook}</TD>
								<TD align="center">${totalBean.softwareProd}</TD>
								<TD align="center">${totalBean.doctor}</TD>
								<TD align="center">${totalBean.master}</TD>
								<TD align="center">${totalBean.bachelor}</TD>
								<TD align="center">${totalBean.college}</TD>
								<TD align="center">${totalBean.totalEmployee}</TD>
							     </TR>
						</TBODY>
					</TABLE>
					<table width="98%" height="24" border="0" cellpadding="0"
						cellspacing="0">
						<tr>
							<td align="right"><iss:navigation /></td>
						</tr>
					</table>
					<table width="98%" height="28" border="0" cellpadding="0"
						cellspacing="0">
						<tr>

							<td valign="top"><input name="Submit22" type="submit"
								class="button_normal" value="导出Excel"
								onClick="window.location.href='<%=request.getContextPath()%>/report/downMonthReport.html?beginYearMonth=${beginYearMonth }&endYearMonth=${endYearMonth }'">
							&nbsp;&nbsp; </td>
						</tr>
					</table>
			</table>
			<table width="98%" height="5" border="0" cellpadding="0"
				cellspacing="0">
				<tr>
					<td></td>
				</tr>
			</table>
			</TD>
		</TR>
	</TBODY>
</TABLE>
</BODY>
</HTML>
